package com.chinasoft.tw.service.lizh;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class LiZhaoHao implements TrueWord {
    String name;
    List<String> wordList =new ArrayList<>();
    Random random = new Random();

    public LiZhaoHao() {
        this.name="黎朝浩";
        wordList.add("Hello,World！凉宫御夏向您问好!");
        wordList.add("凉宫御夏工作testing！");
    }
    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));

        return info;
    }
}
